package com.lhkj.ct.quartz.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
import com.baomidou.mybatisplus.extension.toolkit.SqlHelper;
import com.lhkj.ct.base.mybatis.extension.service.IPageService;
import com.lhkj.ct.quartz.model.entity.TblJobLog;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Collection;

/**
 * <p>
 * 定时任务调度日志表 服务类
 * </p>
 *
 * @author jobob
 * @since 2023-09-23
 */
public interface SysJobLogService extends IPageService<TblJobLog> {

    boolean save(TblJobLog entity);

    /**
     * 根据调度编号获取详细信息
     * @param jobLogId
     * @return
     */
    TblJobLog selectById(String jobLogId);
    /**
     * 获取quartz调度器日志的计划任务
     *
     * @param jobLog 调度日志信息
     * @return 调度任务日志集合
     */
    IPage<TblJobLog> selectJobPage(TblJobLog jobLog);

    boolean removeByIds(Collection<?> list);

    void clear();
}
